import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 获取表格数据
export const getSystemList = params => axios.get(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/query`, { params });
//批量启动
export const piliangqiyong = data => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/updateStatuByIds`,  null ,{params : data} );
//批量停用
export const piliangtingyong = data => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/updateStatuByIds`,  null ,{params : data} );
//批量删除
export const piliangshanchu = ids => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/batch/${ids}` );
//新增的保存
export const newSave = params => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/saveOne`,  params );
//通过ID查
export const selectById = data => axios.get(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/selectById`,{params : data});
//修改的保存
export const editSave = (id,params) => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/updateById/${id}`,params );
// 批量导入
export const postImportPartOrders = params => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicSystem/imports`, params)
